package basic.scopeOfModifier1;

import basic.scopeOfModifier.ParentClass;

/**
 * @Description: TODO 不同包下的其他类
 * @Author: wzj
 * @Date: 2020/11/19 19:09
 */
public class OtherClass {
    public void print(){
        ParentClass parentClass=new ParentClass();
        // parentClass.intProtected    parentClass.intDefault    parentClass.intPrivate报错
//        System.out.println(parentClass.intPublic+" "+parentClass.intProtected+" "+parentClass.intDefault+" "+parentClass.intPrivate);
        System.out.println(parentClass.intPublic);
    }
}
